<%@page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html class="root61">
<head>
<%@include file="/views/common/include/taglib.jsp"%>
<%@include file="/views/common/include/head.jsp"%>
<link type="text/css" rel="stylesheet" href="${ctx}/css/dlifestyle/sectionparent.css" source="widget" />
	<link type="text/css" rel="stylesheet" href="${ctx}/css/dlifestyle/admin.css" source="widget" />
</head>
<body style="margin: 0px">
	<section class="mainborder">
		<section class="edit_scrollable padder">
			<div class="edit_content">
				
				<form id="myFrom" >
					<c:if test="${type ==1}">
					<div class="form">
						<input id="questionId" type="hidden" value="${repairInfo.id }">
						<div class="item">
							<span class="col-sm-1 editlable">实收金额：</span>
							<div class="fl">
								<input class="editform-control" id="cost" type="number" class="text" maxlength="20" required="required" placeholder="请输入金额，免费填0" />
								<em style="color:red;">*</em>
							</div>
						</div>
						<div class="item">
		                   <label class="col-sm-1 editlable">上传照片：</label>
		                   <div class="fl">
		                       <input class="editform-control" id="photo" type="file" class="text" maxlength="20" placeholder="请上传照片" />
		                   </div>
		                </div>
						<div class="item">
							<span class="col-sm-1 editlable">备注说明：</span>
							<div class="fl">
								<input class="editform-control" id="memo" type="text" class="text" maxlength="50" placeholder="请输入备注" />
							</div>
						</div>
					</div>
					</c:if>
					
					<c:if test="${type ==2}">
					<div class="form">
						<div class="item">
		                   <span class="col-sm-1 editlable">回复类型：</span>
		                   <div class="fl">
		                       <select class="editform-control" id="replyType" style="height:29px;width: 150px;" onchange="changeType()">
									<option value="1"  selected="selected">标准回复</option>
									<option value="2">自定义回复</option>
		                       </select>
		                       <em class="emStyle">*</em>
		                   </div>
		                </div>
		                
		                <div id ="normal" style="display: block;">
		                	<div class="item">
								<span class="col-sm-1 editlable">标题：</span>
								<div class="fl" id ="normalCont">
									<select class="editform-control" style="height:29px;width: 150px;" id="normalTitle" onblur="checkNormalTitle();" onchange="changeContent(this)" required>
				                      <option value="" >请选择</option>
				                      <c:forEach items="${titleList}" var="item" varStatus="cStatus">
											<option value="${item.label}" content="${item.description}" >${item.label}</option>
									  </c:forEach>
		                       		</select>
		                       		<em class="emStyle">*</em>
			                    </div>
							</div>
							<div class="item">
			                   <label class="col-sm-1 editlable">内容：</label>
			                   <div class="fl">
			                        <input class="editform-control" id="normalContent" type="text" class="text" maxlength="20"  readonly/>
			                   </div>
			                </div>
		                </div>
		                
		                <div id ="self" style="display: none;">
		                	<div class="item">
								<span class="col-sm-1 editlable">标题：</span>
			                    <div class="fl" >
									<input class="editform-control" id="selfTitle" onblur="checkSelfTitle();" type="text" class="text" maxlength="20" placeholder="请输入标题" />
									<em class="emStyle">*</em>
								</div>
							</div>
							<div class="item">
			                   <label class="col-sm-1 editlable">内容：</label>
			                   <div class="fl">
									<input class="editform-control" id="selfCotent" type="text" class="text" maxlength="20" placeholder="请输入回复内容" />
			                   </div>
			                </div>
		                </div>
						
						<div class="item">
							<span class="col-sm-1 editlable">备注说明：</span>
							<div class="fl">
								<input class="editform-control" id="memo" type="text" class="text" maxlength="50" placeholder="请输入备注" />
							</div>
						</div>
						
					</div>
					</c:if>
				</form>
				
			</div>
		</section>
	</section>

	<script type="text/javascript">
		document.getElementById("myFrom").reset();
	</script>
</body>
<script
	src="${ctx}/js/controllers/property/repairinfo/RepairInfoEditController.js"
	type="text/javascript"></script>
<script type="text/javascript">
	var ctx = '${ctx}';
	setCtx(ctx);
</script>
<!-- 解决ie 6 7 8 9不能显示placeholder的问题 -->
<script src="${ctx}/js/lib/jquery.JPlaceholder.js"></script>
</html>
